package com.wenwu.service;

import java.util.List;

import com.wenwu.common.bean.Role;
import com.wenwu.common.bean.RoleResources;
import com.wenwu.common.exception.RelicsException;
import com.wenwu.common.page.PaginationVO;

/**
 * @project ATHome-Manager-Service
 * @class RoleService.java
 * @author zhujiagui E-mail:<zhujiagui@zkingsoft.com>
 * @date 2015年3月3日 下午5:48:36
 * @description 角色模块service层
 */
public interface RoleService {
	int selectTotalRecord(Role role, PaginationVO pageVo)
			throws RelicsException;

	List<Role> selectList(Role role, PaginationVO pageVo)
			throws RelicsException;

	int addRole(Role role) throws RelicsException;

	int updateRole(Role role) throws RelicsException;

	Role selectByKey(Integer roleId) throws RelicsException;

	int deleteRoleByKey(List<?> list) throws RelicsException;

	int saveBatchByRoleId(List<RoleResources> list, Integer roleId)
			throws RelicsException;

	List<RoleResources> selectCurrentList(Integer roleId) throws RelicsException;

}
